package com.jiazhong.basic.pack0517;

import com.jiazhong.basic.pack0517.db.DBManager;
import lombok.SneakyThrows;

import java.sql.Connection;
import java.sql.PreparedStatement;

public class DemoE {

    @SneakyThrows
    public static void main(String[] args) {
        Connection conn = DBManager.getConnection();
        String sql = "insert into f values(?,?)";
        PreparedStatement ps = conn.prepareStatement(sql);
        ps.setString(1,"12");
        ps.setString(2,"离打死");
        ps.executeUpdate();
        ps.close();
        conn.close();
    }
}
